home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Win2K TCPIP Sec 3.xpl < prev    next >
Text File  |  2002-03-10  |  1KB  |  48 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="7"
  3. "COUNT"="2"
  4. "UIPATH"="Network\TCP/IP Hardening
  5. "NAME"="ICMP Redirects"
  6. "OSVERSION"="0001011"
  7. "VERSION"="1.01"
  8. "LANGUAGE"="VBScript"
  9. "WARNING"="1"
  10. "TEXT 1"="Enable ICMP Redirects (Default)"
  11. "TEXT 2"="Do not do anything on ICMP Redirects" 
  12. "DESCRIPTION 1"="ICMP redirects normally cause Windows to alter it's internal routing table. In closed enviroments (LAN) this is a good thing to have."
  13. "DESCRIPTION 2"="However, if you need maximum security this can be a security problem as a hacker might use ICMP redirects to "trick" the server."
  14. "DESCRIPTION 3"="For more information about TCP/IP Hardening, see http://www.winnetmag.com/articles/index.cfm?articleid=23918"
  15. "AUTHOR"="Xteq Systems"
  16. "CONTACTURL"="http://www.xteq.com/"
  17. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  18. "COMMENT 1"=" "
  19.  
  20.  
  21.  
  22. sP="HKLM\System\CurrentControlSet\Services\TcpIp\Parameters\EnableICMPRedirect"
  23.  
  24. Sub Plugin_Initialize 
  25.  i=RegReadValue(sP)
  26.  
  27.  if i=1 or IsEmpty(i) then 
  28.     SetUIElement 1,true
  29.  else
  30.     SetUIElement 2,true
  31.  end if
  32.  
  33. End Sub
  34.  
  35. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  36.  if GetUIElement(1)=true then
  37.     Call RegWriteValue(sP,1,2)
  38.  else
  39.     Call RegWriteValue(sP,0,2)
  40.  end if
  41.  
  42.  Call Restart()
  43. End Sub
  44.  
  45. Sub Plugin_Terminate 
  46. End Sub
  47.  
  48.